<%@ page language="java" contentType="text/html; charset=UTF-8"	%>
<%@ include file="/WEB-INF/classes/com/witframework/webroot/framework/common/taglibs.jsp"%>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
	<head>
		<title>app</title>
		<%@ include file="/WEB-INF/classes/com/witframework/webroot/framework/common/meta.jsp"%>
		<%@ include	file="/WEB-INF/classes/com/witframework/webroot/framework/common/componentsmeta.jsp"%>
	</head>
	<body>
		<form name="appForm" id="appForm" action="metaAppController!store.wit" method="post">		
			<table id="nav" width="100%">
				<tr>
					<td ><img class="img24" src="${contextPath}/webresource/images/meta/application.jpg">
						应用开发-<a href="metaAppController.wit">
						应用</a>-
						创建新应用
					</td>
					<td align="right" id="searchbar" class="fix-operation"> 
						<a href="#" onclick="new validator().validate(appForm,3)" accesskey="s" title="保存数据">
						<img src="${contextPath}/webresource/images/toolbar/iconSaveAndRelation.png">
						保存(S)</a>				
						<a href="javascript:document.appForm.reset();" accesskey="r" title="取消更改">
						<img src="${contextPath}/webresource/images/toolbar/clear.png">
						取消更改(R)</a>
						<a href="metaAppController.wit" accesskey="b">
						<img src="${contextPath}/webresource/images/toolbar/return_to_list.jpeg">
						返回(B)</a>
	  				</td>
				</tr>
			</table>			
			<input type="hidden" name="app_id" value="${app.id}">
			<input type="hidden" name="entityClassName" value="com.witframework.meta.application.MetaApp" />			
			<div id="editFormDiv">
			<table class="formtable" >
    			<tr>
      				<td >
      					<label for="app_name">名 称</label>
      				</td>
      				<td>
	  					<input name="app_name" value="${app.name}" dataType="Limit" max="20" require="true">	  					
      				</td>
    			</tr>
				<%for(int i=0;i<1000;i++){ %>
				<tr>
      				<td >
      					<label for="app_name<%=i %>">名 称</label>
      				</td>
      				<td>
	  					<input name="app_name<%=i %>" value="${app.name}" dataType="Limit" max="20" require="true">	  					
      				</td>
    			</tr>
				
				
				<%} %>
    			<tr>
      				<td>
	  					<label for="app_description">说明</label>
      				</td>
      				<td>
	  					<input name="app_description" value="${app.description}" >
      				</td>
    			</tr>   			
    			
			</table>

			</div>
		</form>
	</body>
</html>